package com.dsh.payMethod.service.impl;

import com.dsh.payMethod.dao.PayMethodDao;
import com.dsh.payMethod.entity.ChargeEntity;
import com.dsh.payMethod.entity.PayMethodVo;
import com.dsh.payMethod.service.ChargeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Service
public class ChargeServiceImpl implements ChargeService{
    @Autowired
    PayMethodDao payMethodDao;
    @Override
    @ApiOperation(value = "收费设置",response = ChargeEntity.class)
    @GetMapping("selectCharge")
    public ChargeEntity selectCharge() {
        ChargeEntity chargeEntity = payMethodDao.selectCharge();
        return chargeEntity;
    }

    @Override
    public List<PayMethodVo> selectPay() {
        List<PayMethodVo> payMethodVos = payMethodDao.selectPay();
        return payMethodVos;
    }
}
